@include('Home.head')
<body>
<div class="container" id="app">
    @include('Home.member.header')
    <div class="my-nav-bar">
        <ol class="am-breadcrumb">
            <li><a href="#">首页</a></li>
            <li><a href="#">我的推广名片</a></li>
        </ol>
    </div>
    <div class="am-cf cart-panel">
        <div class="withdrawals-panel">
            <div class="am-cf qrcode-title-panel">
                <div class="qrcode-face"><img src="/img/home/user/img1.jpg" class="am-img-responsive" /></div>
                <div class="qrcode-myinfo">
                    <p>我是 某某某</p>
                    <p>我为某某某代言</p>
                </div>
            </div>
            <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
            <p class="am-text-center">我的推广二维码</p>
            <p class="am-text-center"><img src="/img/home/user/qrcode.jpg" class="qrcode-qrcode" /></p>
            <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
            <p class="am-text-left">我的推广代码</p>
            <form class="am-form">
                <div class="am-form-group">
                    <textarea class="" rows="3" id="doc-ta-1">http://www.apple.com/abc?id=123456789</textarea>
                </div>
                <div class="am-form-group">
                    <p class="am-text-right"><a class="am-btn am-btn-danger am-show-sm-only am-btn-sm am-radius" href="javascript:;" onClick="jQuery.AMUI.share.open();">立即分享</a></p>
                    <p class="am-text-right"><a class="am-btn am-btn-danger am-show-lg-up am-btn-sm am-radius" href="javascript:;" onClick="jQuery.AMUI.share.open();">立即分享</a></p>
                </div>
            </form>
        </div>
    </div>
    @include('Home.foot')
</div>
</body>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            title: '二维码',
        },
        methods: {
            //初始化 系统管理员列表
            initialize: function () {
                $.post("/admin/system/user", {'_token': '{{csrf_token()}}', id: id, class: 'edit'}, function (res) {
                    if (res.code) {
                        app.users = res.data
                    } else {
                        layer.msg(res.data);
                    }
                });
            },
        },
        //自动执行
        mounted: function () {
            this.initialize();
        },
    })
</script>
</html>
